from django.db import models
from django.contrib.auth.models import AbstractUser
 # Create your models here.
class User(AbstractUser):
    # 继承字段：username, password, email, first_name, last_name等
    create_time = models.DateTimeField('注册时间', auto_now_add=True, editable=False)
    class Meta:
        app_label = 'doubans'#告诉django这个模型属于哪个应用
        verbose_name = '用户'
        verbose_name_plural = verbose_name
    def __str__(self):
        return self.username